﻿using Dyao.Book.Contract;

namespace Dyao.Book.Application.Abstractions
{
    public interface IQiDianBookCatalogueSpider
    {
        /// <summary>
        /// 按数据信息爬取指定目录
        /// </summary>
        /// <param name="dto">书籍信息</param>
        /// <param name="cancellationToken">取消令牌</param>
        /// <returns></returns>
        Task<bool> CrawCatalogueByBookAsync(CrawCatalogueDto dto, CancellationToken cancellationToken);
    }
}
